#练习 15 阅读文件
from sys import argv #导入argv

script, filename = argv #用argv来获取一个文件名

txt = open(filename)  #open打开文件

print(f"Here's your file {filename}:") #打印信息
print(txt.read())#read.函数

print("Type the filename again:")
file_again = input("> ")

txt_again = open(file_again)

print(txt_again.read())

